<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <title>SelectEvery Avisynth Filter</title>
   <link rel="stylesheet" type="text/css" href="../../avisynth.css">
</head>
<body>
<h2>
<a NAME="SelectEvery"></a>SelectEvery
</h2>
<p><code>SelectEvery </code>(<var>clip, int step_size, int offset1 [, int offset2
[, ...]]</var>)
<p><code>SelectEvery</code> is a generalization of filters like <code><a href="select.htm">SelectEven</a></code>
and <code><a href="pulldown.htm">Pulldown</a></code>. I think the easiest way to describe it is by example:
<pre>SelectEvery(clip,2,0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # identical to SelectEven(clip)
SelectEvery(clip,2,1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # identical to SelectOdd(clip)
SelectEvery(clip,10,3,6,7) # select frames 3, 6, 7, 13, 16, 17, ... from source clip
SelectEvery(clip,9,0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # select frames 0, 9, 18, ... from source clip</pre>
And how about this:
<pre># Take a 24fps progressive input clip and apply 3:2 pulldown,
# yielding a 30fps interlaced output clip
AssumeFrameBased
SeparateFields
SelectEvery(8, 0,1, 2,3,2, 5,4, 7,6,7)
Weave</pre>
<p><kbd>$Date: 2005/10/03 16:49:04 $</kbd></p>
<form><input TYPE="Button" VALUE="Back"
onClick="history.go(-1)"></form>
</body>
</html>
